package io.github.lee.jel.ui.folder

import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import io.github.lee.core.ui.adapter.DataBindingAdapter
import io.github.lee.jel.databinding.ItemMediaFolderBinding
import io.github.lee.jel.domain.Item
import io.github.lee.jel.domain.po.JellyfinSession

class MediaFolderAdapter(private val session: JellyfinSession?) :
    DataBindingAdapter<Item, ItemMediaFolderBinding>() {
    override fun onCreateDataBinding(
        context: Context,
        inflater: LayoutInflater,
        parent: ViewGroup,
        viewType: Int
    ): ItemMediaFolderBinding =
        ItemMediaFolderBinding.inflate(inflater, parent, false)

    override fun onItemHolder(binding: ItemMediaFolderBinding, item: Item) {
        binding.item = item
    }

}